package com.vcit.system.domain.major;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vcit.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vcit.common.annotation.Excel;

/**
 * 专业对象 t_major
 * 
 * @author dff
 * @date 2025-01-08
 */
public class TMajor extends BaseEntity
{ private static final long serialVersionUID = 1L;

    /** 专业id */
    private Long id;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String majorName;

    /** 申报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMajorName(String majorName)
    {
        this.majorName = majorName;
    }

    public String getMajorName()
    {
        return majorName;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("majorName", getMajorName())
                .append("startDate", getStartDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
